/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.person.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.person.entity.PersonFarmmanagement;
import com.jeesite.modules.person.dao.PersonFarmmanagementDao;

/**
 * js_person_farmmanagementService
 * @author 达芬奇
 * @version 2019-10-05
 */
@Service
@Transactional(readOnly=true)
public class PersonFarmmanagementService extends CrudService<PersonFarmmanagementDao, PersonFarmmanagement> {
	
	/**
	 * 获取单条数据
	 * @param personFarmmanagement
	 * @return
	 */
	@Override
	public PersonFarmmanagement get(PersonFarmmanagement personFarmmanagement) {
		return super.get(personFarmmanagement);
	}
	
	/**
	 * 查询分页数据
	 * @param personFarmmanagement 查询条件
	 * @param personFarmmanagement.page 分页对象
	 * @return
	 */
	@Override
	public Page<PersonFarmmanagement> findPage(PersonFarmmanagement personFarmmanagement) {
		Page<PersonFarmmanagement> page = new Page<PersonFarmmanagement>();
		page.setList(dao.findList(personFarmmanagement));
		return super.findPage(personFarmmanagement);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param personFarmmanagement
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(PersonFarmmanagement personFarmmanagement) {
		super.save(personFarmmanagement);
	}
	
	/**
	 * 更新状态
	 * @param personFarmmanagement
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(PersonFarmmanagement personFarmmanagement) {
		super.updateStatus(personFarmmanagement);
	}
	
	/**
	 * 删除数据
	 * @param personFarmmanagement
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(PersonFarmmanagement personFarmmanagement) {
		super.delete(personFarmmanagement);
	}

	/**
	 *  查询数据
	 */

//	public List<PersonFarmmanagement>getPersonList(String uid){
//		//return
//	}
	
}